package com.itheima.book.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("favorite")
@ApiModel(description = "收藏信息")
public class Favorite {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("收藏ID")
    private Long id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("书籍ID")
    private Long bookId;

    @ApiModelProperty("创建时间")
    private Date createTime;
} 